home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _0CFF0D1DEB1B40EFB0879F2AAA945741 < prev    next >
Encoding:
Text File  |  2004-06-24  |  1.2 KB  |  46 lines

  1. shader()
  2. {
  3.     sortweight("translucent14")
  4.     pass()
  5.     {
  6.        Lighting()
  7.        tmu()
  8.         {
  9.             TexGen("planar")
  10.             TexMod("scale", "const", %terrain_inv_x, 0, 0, "const", %terrain_inv_z, 0, 0)
  11.             texture()
  12.             {
  13.                 Image(%colortexture)
  14.                 addressfunc("clamp", "clamp", "clamp")
  15.             }
  16.         }
  17.         tmu()
  18.         {
  19.             TexGen("planar")
  20.             TexMod("scale", "const", 0.00256, 0, 0, "const", 0.00256, 0, 0)
  21.             texture()
  22.             {
  23.                 Image("Grid.dds")
  24.                 addressfunc("wrap", "wrap", "wrap")
  25.                 filtering("anisotropic_mip_linear")
  26.                 anisotropy(8)
  27.             }
  28.             ColorOp("add", "texture", "current", "current")
  29.             AlphaOp("arg1", "texture", "diffuse", "current")
  30.         }
  31.         AmbientColor(0.050, 0.050, 0.050, 1.000)
  32.         DiffuseColor(1.000, 1.000, 1.000, 0.5000)
  33.         SpecularColor(0.500, 0.500, 0.500, 1.000)
  34.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  35.         SpecularPow(20.000)
  36.  
  37.         BlendFunc("src_alpha", "inv_src_alpha")
  38.         depthfunc("lequal", 0)
  39.    }
  40.  
  41.     cull("ccw")
  42.  
  43. }
  44.  
  45.  
  46.